package com.nbsaas.boot.marketing.rest.convert;

import com.nbsaas.boot.marketing.data.entity.MemberLevel;
import com.nbsaas.boot.marketing.api.domain.response.MemberLevelResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 会员等级-实体对象转化成响应对象
*/

public class MemberLevelResponseConvert  implements Converter<MemberLevelResponse,MemberLevel> {

    @Override
    public MemberLevelResponse convert(MemberLevel source) {
        MemberLevelResponse  result = new  MemberLevelResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

